package com.ydy.remote.wechat.vo.menu;

import java.util.LinkedList;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;

public class Button {

	private String type;
	private String name;
	private String key;
	@JSONField(name = "sub_button")
	private List<Button> sub_button;

	public boolean add(Button subButton) {
		if (sub_button == null) {
			sub_button = new LinkedList<Button>();
		}
		return sub_button.add(subButton);
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public List<Button> getSub_button() {
		return sub_button;
	}

	public void setSub_button(List<Button> sub_button) {
		this.sub_button = sub_button;
	}

}
